package com.liugege.make.factory.simplefactory.pizzastore.pizza;
/**
* @author: LiuGeGe
* @Date: 2022/3/3 10:43
* @Description(类描述):   订单
* @Class(类): OrderDemo
*/
public class OrderDemo {
    public static void main(String[] args) {
        //创建工厂对象
       /* SimpleFactory simpleFactory = new SimpleFactory();
        //String orderType = "cheese";
        String orderType = "pepper";
        Pizza pizza = simpleFactory.createPizza(orderType);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();*/

        //String orderType = "cheese";
        String orderType = "pepper";
        Pizza pizza = SimpleFactory.createPizza1(orderType);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
    }
}
